Base solution for your next web application

Activities of "hans abelshausen"

Hi, I have a simple question, how to get path of a cshtml which is two Levels above app.js

.state('customHome', {
                     url: '/',
                     controller: 'Test.controllers.views.home.home as vm',
                     templateUrl: '/../../Custom/test.cshtml',
                     menu: 'CustomHome'
                 })

my tree structure Looks like: Test App Main app.js

Test Custom test.cshtml test.js

Thanks in advance.

Question

Hi, is there a way to delete auditlogs by button? I try to get all elements in the table abpauditlogs var logs = _logRepository.GetAll().ToList(); foreach (var log in logs) { _logRepository.Delete(log.Id); _unitOfWorkManager.Current.SaveChanges(); }

But only logs that are pushed by myself to the table are deleted? What's the right way to delete the other entries?

Hi, I have a lot of sites which are only for logged in users. If someone tries to add the URL, the Controller redirects the user to the Login.cshtml page. After Login I would like to Redirect to the url the user tries to reach. Where can I store this url path. I have tried to put it in the app.js $rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {} but this didn't work. Can anyone help me? Thanks in advance

Hi,

I'm trying to increase the max value of the Value field. In database it is declared as max, but if I try to insert a new entry following error occures: Value: Das Feld "Value" muss ein Zeichenfolgen- oder Arraytyp mit einer maximalen Länge von 2000 sein.

In my code I try this: public class UserSetting : Setting { [MaxLength] public override string Value { get; set; } }

I'm using abp 0.7.5

"If current unit of work is transactional, all changes in the transaction are rolled back if an exception occurs, even saved changes." We are getting an out of memory exception inserting elements. So our plan is to save the elements before memory exception occurs, but everything is rolled back. Is there a way to insert the elements although memory exception appears.

Okay, I think [UnitOfWork(isTransactional:false)] could be the solution..

Hi, I'm using Abp 0.7.5.0 I'm trying to get values stored in my database, but I only get the values stored in my application.dll In Core:

public class FeatureValueStore : AbpFeatureValueStore<Tenant, Role, User>
    {
        public FeatureValueStore(TenantManager tenantManager)
            : base(tenantManager)
        {
        }
        
    }

In Application:

public class AppFeatureProvider : FeatureProvider
    {
        public override void SetFeatures(IFeatureDefinitionContext context)
        {
            context.Create("Test", defaultValue: "false");
            context.Create("SecondTest", defaultValue: "50");
        }
    }

In ApplicationModule:

Configuration.Features.Providers.Add<AppFeatureProvider>();

And in my database in abpfeatures table 2 Test true 2016-07-28 08:45:00.400 2 NULL 1 FeatureSetting 3 SecondTest 3 2016-07-28 08:45:00.403 2 NULL 1 FeatureSetting

I thought abp.features.isEnabled for example is getting value from database like it works in abpsettings

Showing 31 to 37 of 37 entries